package com.az.usr.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2024-09-17
 */
@Getter
@Setter
@TableName("user_message")
public class UserMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("usrmsg_id")
    private Long usrmsgId;

    @TableField("user_id")
    private Long userId;

    /**
     * 性别
     */
    @TableField("sex")
    private String sex;

    /**
     * 出生日期
     */
    @TableField("birthday")
    private LocalDateTime birthday;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 手机号
     */
    @TableField("phone_number")
    private String phoneNumber;

    @TableField("id_number")
    private Integer idNumber;

    /**
     * 地址id
     */
    @TableField("address_id")
    private Long addressId;

    /**
     * 用于乐观锁
     */
    @TableField("version")
    @Version
    private Integer version;
}
